package com.kinoshita.admin.service;

import com.kinoshita.admin.entity.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kinoshita.admin.api.domain.RoleDO;
import com.kinoshita.admin.api.query.RoleQueryDO;
import com.kinoshita.common.result.ResultDO;

/**
 * <p>
 *  角色管理
 * </p>
 *
 * @author reagan
 * @since 2022-08-29
 */
public interface IRoleService extends IService<SysRole> {

    /**
     * 添加角色
     * @param domain
     * @return ResultDO
     */
    public ResultDO add(RoleDO domain);

    /**
     * 编辑角色
     * @param domain
     * @return ResultDO
     */
    public ResultDO edit(RoleDO domain);

    /**
     * 删除角色
     * @param id
     * @return ResultDO
     */
    public ResultDO delete(Long id);

    /**
     * 获取角色
     * @param id
     * @return ResultDO
     */
    public ResultDO get(Long id);

    /**
     * 查询角色
     * @param query
     * @return ResultDO
     */
    public ResultDO query(RoleQueryDO query);
}
